#ifndef NETWORKSERVER_H
#define NETWORKSERVER_H

#include "NetworkHandler.h"

class NetworkServer : public NetworkHandler
{
public:
	NetworkServer(int maxConnections, int portNumber);
	~NetworkServer();
	int getNumberOfConnections();
	void awaitConnections();
protected:
	int maxCons;
	int port;
	IPaddress ip;
	TCPsocket serverSocket;
	pthread_t serverThread;
	SDLNet_SocketSet serverSS;
};

#endif
